import com.wago.entity.StuClass;
import com.wago.mapper.StuClassMapper;
import com.wago.mybatis.MyHelper;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

/**
 * Created by webrx on 2017-09-01.
 */
public class Dome {
    @Test
    public void aa(){
        MyHelper my =new MyHelper();
        SqlSession sql=my.getSession();
        StuClassMapper stu= sql.getMapper(StuClassMapper.class);
        List<StuClass> list = stu.queryById(1);
        for (StuClass l :list){
            System.out.println(l);
        }

    }
}
